package com.xm.strategy;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * 支付宝支付
 */
@Slf4j
public class AlipayStrategy implements PaymentStrategy{
    private final String email;

    public AlipayStrategy(String email) {
        this.email = email;
    }

    @Override
    public void pay(BigDecimal amount) {
        log.info("支付宝支付：支付 {} 元，账号：{}", amount, email);
    }
}
